<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<body>

    <form action="/system/role/form" method="post" data-auto="true" class="layui-form" data-table-id="RoleTable">

        <div class="layui-card-body">

            <label class="layui-form-item relative block">
                <span class="help-label"><b>权限名称</b>Permission Name</span>
                <input maxlength="100" class="layui-input" name="title" th:value="${vo?.title}" required vali-name="权限名称" placeholder="请输入权限名称">
                <span class="help-block">访问权限名称需要保持不重复，在给用户授权时需要根据名称选择！</span>
            </label>

            <label class="layui-form-item relative block">
                <span class="help-label"><b>角色标识</b>Permission Name</span>
                <input maxlength="100" class="layui-input" name="name" th:value="${vo?.name}" required vali-name="角色标识" placeholder="请输入角色标识">
                <span class="help-block">角色标识名称需要保持不重复，在给用户授权时需要根据名称选择！</span>
            </label>


            <label class="layui-form-item relative block">
                <span class="help-label"><b>角色类型</b>Permission Type</span>
                <select name="type" class="layui-select">
                    <option value="0" label="医院管理员" th:selected="${vo != null && vo.type == '0'}">医院管理员</option>
                    <option value="1" label="护士长" th:selected="${vo != null && vo.type == '1'}">护士长</option>
                    <option value="2" label="护理公司"   th:selected="${vo != null && vo.type == '2'}">护理公司</option>
                </select>
            </label>




<!--            <label class="layui-form-item relative block">-->
<!--                <span class="help-label"><b>权限类型</b>Permission Type</span>-->
<!--                <select class="layui-select" name="type">-->
<!--                    <option value="">请选择权限类型</option>-->
<!--                    <option value="1" {if isset($vo.id) && $vo.type == 1}selected{/if}>园区</option>-->
<!--                    <option value="2" {if isset($vo.id) && $vo.type == 2}selected{/if}>渠道</option>-->
<!--                </select>-->
<!--            </label>-->

            <label class="layui-form-item relative block">
                <span class="help-label"><b>权限描述</b>Permission Description</span>
                <textarea placeholder="请输入权限描述" maxlength="200" class="layui-textarea" name="remark">[[${vo?.remark}]]</textarea>
            </label>

        </div>

        <input type="hidden" name="id" th:if="${vo}" th:value="${vo.id}"/>

        <div class="layui-form-actions1 text-center">
            <button class="layui-btn" type='submit'>保存数据</button>
            <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
        </div>
    </form>

</body>
</html>